<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:fragment xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">
	<s:decorate template="/layout/list.xhtml">
		<ui:param name="id" value="unidadeOperacionalId" />
		<ui:param name="dataTableTitle" value="#{messages['label.unidades.cadastradas']}" />
		<ui:param name="action" value="#{unidadeOperacionalAction}" />
		<ui:param name="outputPanelListId" value="unidadeOperacionalOutputId" />
		<ui:param name="ajaxRendered" value="true" />
		<rich:column>
			<f:facet name="header">#{messages['label.descricao']}</f:facet>
			<a4j:commandLink 
				value="#{_currentVar.descricao}" 
				action="#{unidadeOperacionalAction.setEntity(_currentVar)}"
				id="linkUnidadeOperacionalId"
				ajaxSingle="true">
			</a4j:commandLink>
		</rich:column>
		<rich:column>
			<f:facet name="header">#{messages['label.comando']}</f:facet>
			<h:outputText value="#{_currentVar.unidadeComando.descricao}" />
		</rich:column>
		<rich:column>
			<f:facet name="header">#{messages['label.comandante']}</f:facet>
			<h:outputText value="#{_currentVar.comandante.nome}" />
		</rich:column>
	</s:decorate>
</ui:fragment>
